@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f4f4f4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 30px;
    overflow-x: hidden;
}

/* ==========================
   HEADER FIJO Y TRANSPARENTE
========================== */

.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.662);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0 0 10px 30px;
    border-bottom: 1px solid rgba(224, 224, 224, 0.427);
    margin: 0;
    transition: all .3s ease;
}

/* ==========================
   LOGO
========================== */

.logo-container {
    padding-top: 10px;
    flex-shrink: 0;
}

.logo-container img {
    height: 90px;
    width: auto;
    display: block;
}

/* ==========================
   CONTENEDOR NAVEGACIÓN
========================== */

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    width: 100%;
}

/* ==========================
   MENÚ SUPERIOR
========================== */

.top-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.top-links {
    display: flex;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.top-links li {
    display: flex;
    align-items: center;
}

.top-links li:not(:last-child)::after {
    content: "|";
    color: #000000;
    margin: 0 10px;
    font-size: 13px;
}

.top-links a {
    text-decoration: none;
    color: #009640;
    font-size: 16px;
    font-weight: 900;
    transition: .3s;
}

.top-links a:hover {
    text-decoration: underline;
}

/* ==========================
   BOTÓN SUPERIOR
========================== */

.top-buttons {
    display: flex;
    margin-left: 20px;
    margin-right: 30px;
}

.top-buttons .btn-green {
    padding: 8px 6px;
    font-size: 17px;
    border-radius: 3px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 17px;
    transition: .3s;
}

.btn:hover {
    opacity: .8;
}

.btn-green {
    background-color: #008738;
    padding-right: 60px;
}

/* ==========================
   MENÚ PRINCIPAL
========================== */

.navigation {
    padding-right: 70px;
}

.navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation > ul > li {
    float: left;
    position: relative;
}

.navigation ul li a {
    display: block;
    padding: 5px 16px;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    transition: .3s;
}

.navigation ul li a:hover {
    color: #009640;
    background: transparent;
}

/* ==========================
   SUBMENÚS PC
========================== */

.navigation ul li ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 230px;
    background: rgba(255,255,255,.97);
    display: none;
    box-shadow: 0 5px 12px rgba(0,0,0,.12);
    z-index: 100;
}

.navigation ul li:hover > ul {
    display: block;
}

.navigation ul li ul li {
    width: 100%;
}

.navigation ul li ul li a {
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
}

.navigation ul li ul li a:hover {
    background: #f5f5f5;
    color: #009640;
}

/* ==========================
   BOTÓN MENÚ MÓVIL
   OCULTO EN PC
========================== */

.mobile-menu-button {
    display: none;
}

/* ==========================
   MENÚ MÓVIL
========================== */

@media screen and (max-width: 768px) {

    body {
        padding-top: 70px;
        overflow-x: hidden;
    }

    /* HEADER */
    .header-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 70px;
        height: 70px;
        padding: 5px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: rgba(255,255,255,.97);
        z-index: 99999;
    }

    /* LOGO */
    .logo-container {
        padding-top: 0;
        flex-shrink: 0;
    }

    .logo-container img {
        height: 58px;
        width: auto;
        max-width: 75px;
        display: block;
    }

    /* BOTÓN */
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        margin-left: auto;
        border: none;
        border-radius: 5px;
        background: #008738;
        color: white;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
        line-height: 1;
        z-index: 100001;
    }

    .mobile-menu-button:hover {
        background: #006f2e;
    }

    /* ==========================
       MENÚ CERRADO
    ========================== */

    .nav-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px;
        background: #fff;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,.15);
        z-index: 100000;
    }

    /* ==========================
       MENÚ ABIERTO
    ========================== */

    .nav-wrapper.menu-open {
        display: flex;
    }

    /* ==========================
       MENÚ SUPERIOR
    ========================== */

    .top-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .top-links {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .top-links li {
        display: block;
        width: 100%;
        border-bottom: 1px solid #ddd;
    }

    .top-links li:not(:last-child)::after {
        display: none;
    }

    .top-links a {
        display: block;
        width: 100%;
        padding: 13px 5px;
        color: #009640;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
    }

    /* ==========================
       COMPRAS EN LÍNEA
    ========================== */

    .top-buttons {
        display: block;
        width: 100%;
        margin: 12px 0;
    }

    .top-buttons .btn-green {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border-radius: 5px;
    }

    /* ==========================
       MENÚ PRINCIPAL
    ========================== */

    .navigation {
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .navigation > ul {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .navigation > ul > li {
        float: none;
        position: relative;
        width: 100%;
        border-top: 1px solid #ddd;
    }

    .navigation ul li a {
        display: block;
        width: 100%;
        padding: 13px 5px;
        font-size: 16px;
        color: #333;
        text-decoration: none;
    }

    .navigation ul li a:hover {
        color: #009640;
    }

    /* ==========================
       SUBMENÚS MÓVIL
    ========================== */

    .navigation ul li ul {
        position: static;
        display: block;
        width: 100%;
        background: #f5f5f5;
        box-shadow: none;
    }

    .navigation ul li ul li {
        width: 100%;
    }

    .navigation ul li ul li a {
        padding: 10px 20px;
        font-size: 14px;
        color: #555;
        border-top: 1px solid #e5e5e5;
    }

    .navigation ul li ul li a:hover {
        background: #eee;
        color: #009640;
    }
}

/* ==========================
   CELULARES PEQUEÑOS
========================== */

@media screen and (max-width: 480px) {

    body {
        padding-top: 65px;
    }

    .header-container {
        min-height: 65px;
        height: 65px;
        padding: 5px 12px;
    }

    .logo-container img {
        height: 52px;
        max-width: 68px;
    }

    .mobile-menu-button {
        width: 42px;
        height: 42px;
        font-size: 26px;
    }

    .nav-wrapper {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 12px;
    }
}


/* SLIDER */
.slider{
    margin-top:68px;
    width:100%;
    height:400px;
    position:relative;
    overflow:hidden;
}

.slider img{
    position:absolute;
    width:100%;
    height:80%;
    object-fit:cover;
    opacity:0;
    transition:opacity 1.5s ease;
}

.slider img.activa{
    opacity:1;
}

/* FOOTER MODIFICADO */
.footer{
    width:100%;
    background:#1e1e1e; /* El color oscuro de fondo */
    display:flex;
    justify-content:space-between; /* Distribuye las 3 columnas horizontalmente */
    align-items:flex-start;       /* Alinea los textos arriba */
    padding:60px 80px 40px 80px;  /* Espaciado generoso */
    color:#b3b3b3;                /* Color gris suave para los textos */
    margin-top:auto;
    gap: 40px;
}

/* Títulos H3 globales del Footer */
.footer h3, .footer-info h3, .footer-enlaces h3, .footer-redes h3 {
    color:#ffffff;                /* Blanco limpio para los títulos */
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Párrafos globales dentro del Footer */
.footer p, .footer-info p, .footer-enlaces p, .footer-redes p {
    font-size:15px;
    line-height:1.8;
    color: #b3b3b3;
    margin-bottom: 8px;
}

/* Columna 1: Horario */
.footer-info{
    display:flex;
    flex-direction: column;       
    align-items: flex-start;      
    flex: 1;
}

.footer-info img{
    display: none;                /* Remueve la imagen vieja de esta sección */
}

/* Columna 2: Teléfono */
.footer-enlaces{
    display:flex;
    flex-direction: column;       
    align-items: flex-start;      
    flex: 1;
}

/* Columna 3: Dirección */
.footer-redes{
    display:flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

/* Barra inferior de Redes sociales */
.iconos img{
    width:25px;
    height:25px;
    filter:brightness(0) invert(1); /* Convierte los iconos oscuros en blancos */
    transition:.3s;
}

.iconos img:hover{
    transform:scale(1.2);
}


/* RESPONSIVE CORREGIDO */
@media(max-width:950px){

.header{
    padding:15px 20px;
}

.header label{
    display:block;
}

.navigation{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:white;
    display:none;
}

.navigation > ul > li{
    width:100%;
    float:none;
}

.navigation ul li ul{
    position:relative;
    width:100%;
}

#toggle:checked ~ .navigation{
    display:block;
}

.slider{
    height:250px;
}

.servicios{
    flex-direction:column;
    width:90%;
}

.tarjeta{
    width:100%;
}

.tarjeta img{
    height:260px;
}

.titulo{
    font-size:22px;
}

/* El footer se vuelve una lista vertical en celulares */
.footer{
    flex-direction:column;
    gap:35px;
    text-align: left;
    padding:40px 30px;
}

.footer-info, .footer-enlaces, .footer-redes{
    flex-direction:column;
    align-items: flex-start;
}

/* Ajuste para la barra inline del HTML en móvil */
div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    gap: 20px;
    text-align: center;
    padding: 20px 30px !important;
}

}

/* equipo gerencial */
.equipo{
    max-width:1200px;
    margin:60px auto;
    padding:0 20px;
}

.directivos{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px 30px;
}

.persona h3{
    font-size:28px;
    font-weight:700;
    color:#0c2545;
    margin-bottom:8px;
    line-height:1.2;
}

.persona p{
    font-size:20px;
    color:#444;
    line-height:1.4;
}

.persona1 img{
    width: 90%;
    height: 80%;
    display:block;
    border-radius:8px;
}

.persona2 img{
     width: 90%;
    height: 80%;
    display:block;
    border-radius:8px;
}

.persona3 img{
     width: 80%;
    height: 80%;
    display:block;
    border-radius:8px;
}

.persona4 img{
    width: 80%;
    height: 80%;
    display:block;
    border-radius:8px;
}

.persona5 img{
    width: 70%;
    height: 80%;
    display:block;
    border-radius:8px;
}

.persona6 img{
    width: 70%;
    height: 80%;
    display:block;
    border-radius:8px;
}
/* Tablet */

@media(max-width:992px){

    .directivos{
        grid-template-columns:repeat(2,1fr);
    }

    .persona h3{
        font-size:24px;
    }

    .persona p{
        font-size:18px;
    }

}

/* Móvil */

@media(max-width:576px){

    .directivos{
        grid-template-columns:1fr;
        gap:25px;
    }

    .persona{
        text-align:center;
    }

    .persona h3{
        font-size:22px;
    }

    .persona p{
        font-size:16px;
    }

}

.titulo {
    margin: 0 auto;
    text-align: justify;
    font-size: 30px;
    color: #3c7a3c;
    margin-bottom: 20px;
}

.parrafo {
    max-width: 1100px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.5;
    font-size: 18px;
    margin-bottom: 25px;
    color: #000;
}

.parrafo1 {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 18px;
    margin-bottom: 25px;
    color: #000;
}

.img {
    width:13%;
    height: 13%;
    display:block;
    border-radius:8px;
}

/* TARJETA CON MÁRGENES LIMPIOS Y COMPACTOS */
.card1 {
    width: 320px;
    background: #fff;
    border: 1px solid #d9d9d9;
    padding: 20px; /* Reducido para eliminar espacios sobrantes */
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
    transform: translateY(-5px);
}

/* CONTENEDOR DE FOTO PARA ELIMINAR BORDES EXTRAÑOS */
.foto-container {
    width: 100%;
    height: 280px; /* Altura ideal para encuadrar torso y cabeza */
    border: 4px solid #3f7f3f; /* El marco verde se aplica directamente al contenedor */
    margin-bottom: 15px; /* Margen inferior ajustado */
    overflow: hidden;
}

.foto {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajuste perfecto sin deformar */
    object-position: center 15%; /* Alinea exactamente la cara para evitar recortes raros */
    
    /* Máxima nitidez */
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

/* TEXTOS SIN MARGENES EXCESIVOS */
h2 {
    color: #2f6d36;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

p {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
}

/* BOTÓN BLOQUE */
.btn {
    display: block;
    text-decoration: none;
    background: #3f7f3f;
    color: #fff;
    padding: 14px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color .3s ease;
}

.btn:hover {
    background: #2d612d;
}



/* Contenedor de todas las tarjetas */
.cards-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 30px;
}

/* Una sola clase para todas las tarjetas */
.card{
    width: 320px;
    background: #fff;
    border: 1px solid #d9d9d9;
    padding: 20px;
    text-align: center;
    transition: .3s;
}

.card:hover{
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.foto{
    width: 100%;
    height: 280px;
    object-fit: cover;
    border: 4px solid #3f7f3f;
    margin-bottom: 15px;
}

.btn{
    display:block;
    background:#3f7f3f;
    color:#fff;
    text-decoration:none;
    padding:14px;
    font-weight:bold;
    margin-top:15px;
}

.btn:hover{
    background:#2d612d;
}







/* MODAL */

.modal{
    display:none;
    position:fixed;
    z-index:9999;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.75);
    backdrop-filter:blur(5px);
}


/* CAJA DEL MODAL */

.modal-content{

    width:90%;
    max-width:900px;
    background:white;
    margin:60px auto;
    border-radius:20px;
    overflow:hidden;

    display:flex;

    box-shadow:0 20px 50px rgba(0,0,0,.4);

    animation:aparecer .4s ease;

}


@keyframes aparecer{

    from{
        transform:translateY(-50px);
        opacity:0;
    }

    to{
        transform:translateY(0);
        opacity:1;
    }

}


/* LADO FOTO */

.modal-left{

    width:35%;
    background:#2f6d36;
    color:white;

    padding:40px;

    text-align:center;

}


.modal-foto{

    width:220px;
    height:220px;

    border-radius:50%;

    object-fit:cover;

    border:6px solid white;

}


.modal-left h2{

    color:white;
    margin-top:20px;
    font-size:24px;

}


.modal-left h3{

    color:#d8f3dc;
    font-weight:normal;

}



/* INFORMACION */

.modal-right{

    width:65%;
    padding:45px;

}


.modal-right h4{

    color:#2f6d36;
    font-size:22px;

    border-left:5px solid #2f6d36;

    padding-left:10px;

}


.modal-right p{

    color:#555;
    line-height:1.8;

    text-align:justify;

}


/* BOTON CERRAR */

.cerrar{

    position:absolute;

    right:30px;
    top:20px;

    font-size:40px;

    color:white;

    cursor:pointer;

}


.cerrar:hover{

    color:#3f7f3f;

}



/* CELULAR */

@media(max-width:700px){

.modal-content{

    flex-direction:column;

}


.modal-left,
.modal-right{

    width:100%;

}


.modal-foto{

    width:160px;
    height:160px;

}

}

.dividir {
    margin-bottom: 80px;
}

.dividir1 {
    margin-bottom: 17px;
}